package va.radiomaria.launchers;

import java.io.IOException;
import java.util.Random;
import va.radiomaria.gui.Controller;
import va.radiomaria.p2p.RadioPeer;

/**
 * Starts a radio peer that will then need to bootstrap with a well known peer.
 *
 */
public class PeerLauncher {


	public static void main(String[] args) {

		Random rand = new Random();
		try {
			RadioPeer peer = new RadioPeer(rand.nextInt());
			new Controller(peer);		
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}

}
